package level4Assessment;

public class ParkingTicket 
{
	protected int arrivalHour;
	protected int arrivalMinute;	
	protected int expiryHour;
	protected int expiryMinute;	
	protected Boolean prePaid;
	protected String registrationNumber;

	public ParkingTicket(String registrationNumber, int arrivalHour,int arrivalMinute, int expiryHour, int expiryMinute)
	{
		ParkingTransaction prePaidParkingTransaction = new PrePaidParkingTransaction(registrationNumber, arrivalHour, arrivalMinute, expiryHour, expiryMinute, expiryMinute);
		prePaidParkingTransaction.calculateTotalCost();
	}
	public ParkingTicket(String registrationNumber, int arrivalHour, int arrivalMinute, int hoursStaying)
	{
		ParkingTransaction driveUpParkingTransaction = new DriveUpParkingTransaction(registrationNumber, arrivalHour, arrivalMinute, hoursStaying);
		driveUpParkingTransaction.calculateTotalCost();
	}
}
